# == Schema Information
#
# Table name: structures
#
#  id           :integer(4)      not null, primary key
#  title        :string(255)     not null
#  slug         :string(25)      not null
#  kind         :integer(1)      default(0)
#  position     :integer(2)      default(0)
#  is_visible   :boolean(1)      default(TRUE)
#  redirect_url :string(255)
#  parent_id    :integer(4)
#  lft          :integer(4)      default(0)
#  rgt          :integer(4)      default(0)
#  depth        :integer(4)      default(0)
#  created_at   :datetime
#  updated_at   :datetime
#
# Indexes
#
#  index_structures_on_kind_and_slug  (kind,slug)
#  index_structures_on_parent_id      (parent_id)
#  index_structures_on_lft_and_rgt    (lft,rgt)
#

class Structure < ActiveRecord::Base
  include Sunrise::Models::Structure
  
  has_slug :prepend_id => false
  
  attr_accessible :title, :kind, :position, :parent_id, :redirect_url,
                  :position_type, :slug, :parent, :structure_type, 
                  :header_attributes, :is_visible
end
